package com.xwj.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author xwj
 * @date 2020/10/28
 */
@Component
public class PaymentServiceFallbackFactory implements FallbackFactory<PaymentServiceFallback>  {
    @Override
    public PaymentServiceFallback create(Throwable throwable) {
        return new PaymentServiceFallback(throwable);
    }
}
